home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / util / text / fwepspat.rea < prev    next >
Text File  |  1995-08-22  |  12KB  |  300 lines

  1. Short:    Patch FW 1, 2, 3 and 4 to show and print EPS graphics with text
  2. Author:   UpperDesign@zeus.ci.ua.pt (Manuel Lemos)
  3. Uploader: UpperDesign@zeus.ci.ua.pt (Manuel Lemos)
  4. Type:     text/print
  5.  
  6.  
  7. DESCRIPTION
  8.  
  9. This archive contains a patch to FinalWriter init.ps that is used to
  10. initialize the EPS interpreter enabling it to render EPS graphics that use
  11. PostScript text fonts to screen and to non-PostScript printers.
  12.  
  13. Apparently the support for text fonts was deliberately disabled by Softwood.
  14. This patches re-enables that support.
  15.  
  16.  
  17. DISCLAIMER
  18.  
  19. With this document I make no warranties or representations, either
  20. expressed or implied, with respect to the program described herein.  The
  21. program and the information presented herein is being supplied on an `as
  22. is' basis and is expressly subject to change without notice.  The entire
  23. risk as to the use of the program and the information presented is assumed
  24. by the user.  In no event will I be liable for direct, indirect,
  25. incidental, or consequential damages resulting from any claim arising out
  26. of the use of the program or the information presented herein, even if I
  27. have been advised of the possibilities of such damages.
  28.  
  29.  
  30. NOW SERIOUSLY...
  31.  
  32. This text provides you lots of information that you might not be aware.  If
  33. somehow you know or feel the provided information is inaccurate or contain
  34. mistakes, please warn me and apologize as my intention is only to help at
  35. the exchange of nothing at all.
  36.  
  37. See below lots of hints that might be of real value to you.
  38.  
  39.  
  40. INSTALLATION
  41.  
  42. Just run this Installer script included in this archive from the Workbench.
  43. This script requires the Installer utility to run.  Please make sure you
  44. have FinalWriter Disk1 in hand to run the installation script.
  45.  
  46.  
  47. SO, WHAT WAS THE PROBLEM?
  48.  
  49. I found two problems:
  50.  
  51. 1) The PostScript interpreter needs to know where in disk are located the
  52.    fonts that it needs.  The file that initializes the interpreter
  53.    (FWFiles/init.ps) had the lines that define that path in comment.
  54.  
  55.    This patch uncomments those lines, setting the font search path to
  56.    PSFONTS:  directory.  You can edit the init.ps file after applying this
  57.    patch to change this path to another directory.
  58.  
  59.    You need to have PostScript fonts (Type 1 and Type 3) installed in that
  60.    directory.  If you don't have any PostScript fonts, you may find them in
  61.    Fish Disk 828, 829 and 830.  The quality of these fonts is not very good
  62.    but they'll do for the purpose of rendering EPS graphics to screen and
  63.    to non-PostScript printers.
  64.  
  65.    You may use Adobe's ATM fonts as well.  These are very good although
  66.    they take more to render.  You may also use any of those hundreds that
  67.    come in CDs for a bargain (i.e. $20 each CD).
  68.  
  69.    Be careful to restore the original names of the fonts of those files.
  70.    Some collections of fonts were meant to be used in MS-DOS machines, so
  71.    their filenames are truncated.  There is an utility in Aminet that does
  72.    that for you for Type 1 fonts that you have installed.
  73.  
  74.    /pub/aminet/text/font/PFBR.lha 2K+Type 1 PostScript Font Renaming Utility (v
  75.  
  76.  
  77. 2) The PostScript code in the init.ps file that defines ISOLatin1Encoding
  78.    array was not very well defined.  This array defines the names of glyphs
  79.    used by the character set that Amiga uses.
  80.  
  81.    This bug could lead to erroneous character mapping when an EPS file with
  82.    text was being imported to FinalWriter.
  83.  
  84.    ISOLatin1Encoding table is only expected to be defined by Level 2
  85.    PostScript interpreters.  Although FinalWriter's PostScript interpreter
  86.    is not a full Level 2 interpreter, the init.ps file defines
  87.    ISOLatin1Encoding table.
  88.  
  89.    Some EPS/PS files assume when ISOLatin1Encoding is defined, it is well
  90.    defined which is not the case.  This patch fixes the definition of this
  91.    table.
  92.  
  93.    Many EPS/PS files, generated by for instance Amiga programs, correctly
  94.    redefine ISOLatin1Encoding table regardless if it is already defined, so
  95.    they don't suffer from this fault of the FinalWriter init.ps.
  96.  
  97.  
  98. HINTS
  99.  
  100. Summary:
  101.  
  102. · PostScript Fonts in other directories than PSFONTS:.
  103. · Converting *ANY* PostScript file to EPS.
  104. · Printing *ANY* PostScript file to non-PostScript printer.
  105. · Viewing PostScript files.
  106. · Using PostScript Type 1 fonts in *ANY* Amiga application.
  107. · WYSIWYG Equation Editor with EPS and LaTeX output.
  108. · Tables and Matrices WYSIWYG editors.
  109.  
  110.  
  111. · PostScript Fonts in other directories than PSFONTS:.
  112.  
  113.   PostScript Fonts don't have to be necessarily installed in PSFONTS:
  114.   directory.  As a matter of fact they can be installed anywhere in disk.
  115.  
  116.   All you have to do is find these lines below in the init.ps file,
  117.   duplicate and change them as required.
  118.  
  119.   The named PSFONTS:  comes from the original post.library interpreter by
  120.   Adrian Aylward that required PostScript fonts to be in PSFONTS: directory.
  121.  
  122. % If you want to search more than one directory, duplicate the following
  123. % few lines for each additional font directory path.
  124. % dup FontDirectory exch known not             % Not in FontDirectory?
  125. % { dup (PSFonts:OtherFonts/) () loadfont      % Try PSFonts:OtherFonts
  126. % } if
  127.  
  128.  
  129. · Converting *ANY* PostScript file to EPS.
  130.  
  131.   If you want import *ANY* PostScript file in FinalWriter, all you have to
  132.   do is convert it into EPS.  EPS is actually PostScript with a few special
  133.   comment lines and an optional preview bitmap.
  134.  
  135.   Rendering the bitmap preview is usually faster that interpreting the
  136.   PostScript file from which was generated that preview.
  137.  
  138.   There is a program for the Amiga named EPSLab by Alessandro Sala, that
  139.   converts any PostScript file into EPS (EPSF/EPSI) adding if necessary
  140.   preview bitmap.  This program is available in Aminet within the following
  141.   path:
  142.  
  143.   EpsLab_1.02.lha util/conv 147K+Adds a preview image to EPS files.
  144.   EpsLab_fix.lha  util/conv  36K+Bug-fix and German catalog for v1.02
  145.  
  146.   NOTE:  EPS graphics are single page graphics.  You may try convert any
  147.   multi-page PostScript document to EPS, but EPSLab only considers the
  148.   first page.
  149.  
  150.   If you want any page from a PostScript document other than the first, you
  151.   have to extract it from the main document first.
  152.  
  153.   There are utilities that can do that for you, but they require that the
  154.   main PostScript document conforms with Adobe's Document Structure
  155.   Conventions (DSC).
  156.  
  157.   There are programs that don't generate DSC conforming PostScript output,
  158.   and so it is unlikely that you will be able extract middle pages from a
  159.   multi-page document.
  160.  
  161.   You may want to check PSUtils archives in Aminet and other ftp sites to
  162.   see what can be done to split you PostScript documents.
  163.  
  164.   PSUtils.lzh text/print 65K+Cli utilities for manipulating PS files
  165.  
  166.   You can try also PostSplit for PageStream PostScript files.
  167.  
  168.   PostSplit.lha text/dtp 38K+Pagestream Postscript file splitter. V1.05
  169.  
  170.  
  171. · Printing *ANY* PostScript file to non-PostScript printer.
  172.  
  173.   If you to print a PostScript file to a non-PostScript printer, you may
  174.   want to try PSPRT:  filesystem handler by Daniel Weber
  175.   (dweber@amiga.icu.net.ch).  It works like PRT:  but interprets the input
  176.   as PostScript input.
  177.  
  178.   psprt10.lha text/print 6K+PostScript printer handler for non-postscr
  179.  
  180.  
  181. · Viewing PostScript files.
  182.  
  183.   If you want to see PostScript (EPS or not) graphics without having to
  184.   import them into a DTP/WP program, you may use either one of these
  185.   programs:
  186.  
  187. - Post originally by Adrian Aylward, but today is maintained by Heinz Wrobel
  188.   (heinz@hwg.muc.de).  There was also Post enhanced but it doesn't seem to
  189.   be maintained today.
  190.  
  191.  
  192. - PostView by Ralph Schmidt (laire@uni-paderborn.de).
  193.  
  194.   PostView1.2.lha text/print 36K+Shows PS files. **A2410 Tiga** support
  195.  
  196.  
  197. - MultiView if you have Amiga OS 3 or higher, with PostScript datatype
  198.   (PS/EPS/EPSF) by Heinz Wrobel (heinz@hwg.muc.de).  The PostScript
  199.   datatype is part of the HWGPOST archive (See below).
  200.  
  201.   There was also a PostScript datatype written by Swen Stullich, but it
  202.   didn't seem very stable.  Heinz Wrobel rewrote it from scratch and it
  203.   works with binary EPS (EPSF) files too.
  204.  
  205.   All these programs require post.library.  Heinz Wrobel reworked and
  206.   maintains post.library.  Today, Heinz's version of post.library is more
  207.   stable and closer to a full Level 2 PostScript interpreter.  This
  208.   archives includes working PostScript datatypes.
  209.  
  210.   HWGPOSTbeta6.lha text/print 261K+PostScript Library with many Level 2 features
  211.  
  212.  
  213. · Using PostScript Type 1 fonts in *ANY* Amiga application.
  214.  
  215.   If you want to use PostScript Type 1 fonts in your system like any other
  216.   kind of standard fonts, check out type1.library in Aminet by Amish S.
  217.   Dave (asd2@midway.uchicago.edu).
  218.  
  219.   This library is compatible with bullet.library that is used by the Amiga
  220.   OS to support AGFA Compugraphic fonts.  All the Amiga programs that can
  221.   use CGFonts, can use PostScript type 1 fonts as well with type1.library.
  222.   This requires OS 2.1 or higher version of diskfont.library.
  223.  
  224.   It comes with font manager (Type1Manager) that provides similar
  225.   functionalities as CGFont Managers Fontain and Intellifont that come with
  226.   Amiga OS. 
  227.  
  228.   type1beta5.lha util/libs 255K+Type1library - postscript font engine
  229.  
  230.   Gordon Fecyk (gordonf@freenet.vancouver.bc.ca) is working on a package
  231.   that will provide Adobe Type Manager (ATM) like, to Amiga OS.  Currently
  232.   is working on beta version 5.  The package that was previously named ATM.
  233.   But for copyright reasons, it was renamed Amiga Type Engine (ATE).
  234.  
  235.  
  236. · WYSIWYG Equation Editor with EPS and LaTeX output.
  237.  
  238.   If you are looking for a nice WYSIWYG (What You See Is What You Get)
  239.   Equation Editor that generates EPS output, try EqEd in Aminet by Brian
  240.   Aagaard Petersen (aagaard@fys.ku.dk).  There's also an WWW page at
  241.   http://meyer.fys.ku.dk/~aagaard .
  242.  
  243.   If you are a TeX fanatic and don't believe that WYSIWYG Equation Editors
  244.   are any good, there's some hope for you.  EqEd can save the output in
  245.   LaTeX format.
  246.  
  247.   If you still want use an Equation edited in EqEd and laid out by LaTeX, in
  248.   FinalWriter or other program that imports EPS, all you have to do is to
  249.   convert LaTeX output to PostScript, convert it to EPS with EPSLab (see
  250.   above) if necessary, and there you are.
  251.  
  252.  
  253. · Tables and Matrices WYSIWYG editors.
  254.  
  255.   If you are looking for a usable Tables and Matrices editor, beta version
  256.   0.95 Brian EqEd already supports a basic form of tables and matrices,
  257.   although they still lack of optional frames.
  258.  
  259.   You can also create tables with ProCalc.  ProCalc can do nice frames for
  260.   the tables using the Borders menu.  It's a bit limited but it works.
  261.  
  262.   If you want to export to EPS to use in FinalWriter or other program that
  263.   imports EPS, make sure you only use fonts that have PostScript support
  264.   such as Courier.  Those fonts are marked with 'p' character on the right
  265.   side of the ProCalc's font requester.
  266.  
  267.  
  268. HISTORY
  269.  
  270. 17.02.1995 - First Release.
  271.  
  272. 21.02.1995 - spatch executable included
  273.            - Patch file for FinalWriter 3 init.ps file included. Softwood
  274.              just bumped the revision from Release 1 and 2 to Release 3.
  275.            - Added an installer script for dummies.
  276.            - Added a few hints to FinalWriter PostScript/EPS users.
  277.  
  278. 19.08.1995 - Generated a new patch file FinalWriter 4. Again, Softwood just
  279.              bumped the revision from Release 3 to Release 4.  The patched
  280.              file will result the same as for previous FinalWriter
  281.              releases.
  282.  
  283.            - Updated some of the hints section of this text.
  284.  
  285.            - MESSAGE TO SOFTWOOD:  I, Manuel Lemos, Amiga developer declare
  286.              that, you, Softwood, are have my permission to include the
  287.              patched EPS init file in any future release of FinalWriter or
  288.              any other program that you might write for the Amiga
  289.              computers, at no expense for yourselves (although a free copy
  290.              of FinalCalc would be a nice compensation :-) ).  I am fully
  291.              open to provide any help that you might need to develop Amiga
  292.              applications.
  293.  
  294. Manuel Lemos
  295. 19.08.1995
  296. UpperDesign@zeus.ci.ua.pt
  297. Apartado 391
  298. 3800 AVEIRO
  299. PORTUGAL
  300.